<?php

namespace Project\UserBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;


class DefaultController extends Controller
{
    
    public function indexAction($name, $family, $third_name )
    {
        $request = $this->getRequest();
        $id = $request->get('id',1231312312);
        return $this->render('UserBundle:Default:index.html.twig',
            array(
                    'name' => $name,
                    'family'=> $family,
                    'third_name'=>$third_name
            ));
    }

    public function getrequstAction()
    {
        $request = $this->getRequest();
        $name = $request->get('name');
        $family = $request->get('family');
        $third_name = $request->get('third_name');
        return $this->render('UserBundle:Default:getrequest.html.twig',
            array(
                'name' => $name,
                'family'=> $family,
                'third_name'=>$third_name
            ));
    }

    public function menuAction()
    {
        return $this->render('UserBundle:Default:menu.html.twig');
    }

    public function menu_getAction()
    {
        return $this->render('UserBundle:Default:menu_get.html.twig');
    }

    public function main_menuAction()
    {
        return $this->render('UserBundle:Default:main_menu.html.twig');
    }
}
